<%@page import="org.wso2.ws.dataservice.StudentListClient,
org.wso2.ws.dataservice.StudentMySQLReaderStub.Student"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>~~~ Student List ~~~</title>
</head>
<body>

<table>
<tr><td>Student Id</td><td>First Name</td><td>Last Name</td><td>City</td></tr>
<%
StudentListClient studentListClient = new StudentListClient();

Student[] students = studentListClient.getStudentList();
for (int i = 0; i < students.length; i++) {
	%>
	<tr>
	<td><%=students[i].getStudentID() %></td>
	<td><%=students[i].getFirstName() %></td>
	<td><%=students[i].getSurname() %></td>
	<td><%=students[i].getAddressCity() %></td>
	</tr>
	<%
	}
%>
</table>
</body>
</html>